

#include "d2Platform.h"


#pragma comment(linker, "/STACK:100000000 ")



int main(){
	//D2Platform d2p(451, 185, 1024, 558); //x, y, w, h
	//D2Platform d2p(849, 104, 1024, 558);
	D2Platform d2p(256, 70, 1024, 558); //x,y, w,h,
	unsigned char cmd[1024];

	printf("c for contiues, r for restart, s for stop\n");
	while(scanf("%s", cmd) != EOF){
		switch(cmd[0]){
		case 'c':
			d2p.goodBall();
			printf("continues\n");
			break;
		case 'r':
			printf("restart\n");
			d2p.myTurn();
			break;
		case 's':
			printf("stop\n");
			break;
		default:
			printf("unkown cmd\n");
			break;
		}
		if(cmd[0] == 's')break;
		printf("c for contiues, r for restart, s for stop\n");
	}
	
	//d2p.shooter(Point(548, 100));
	return 0;
}